package com.zhj.demo.service;

import com.zhj.demo.mapper.UserMapper;
import com.zhj.demo.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author zhj
 */
@Service
public class UserService {

    @Resource
    private UserMapper userMapper;

    public User get(long id) {
        userMapper.get(id);
        userMapper.get(id);
        userMapper.update(id);
        userMapper.get(id);
        return userMapper.get(id);
    }
}
